package com.konke.sdslibrary.event;



public class CodelibCreateResultEvent extends SmartHomeEvent {

    private int deviceId;
    private int libId;
    private int errorCode;

    public CodelibCreateResultEvent(String ccuId, int deviceId, int libId, int errorCode) {
        super(ccuId);
        this.deviceId = deviceId;
        this.libId = libId;
        this.errorCode = errorCode;
    }

    public int getDeviceId() {
        return deviceId;
    }

    public int getLibId() {
        return libId;
    }

    public boolean isSuccess() {
        return errorCode==0;
    }

    public int getErrorCode() {
        return errorCode;
    }

}
